from docx import Document
from docx.shared import Inches


def main():
    from docx import Document
    from docx.shared import Cm

    # Load the Word document
    doc = Document('Lyra-600 One-Touch Mobile Collector_V1.2.240329.docx')

    # Iterate over all shapes in the document
    for shape in doc.inline_shapes:
        # Check if shape is a picture (type 3 corresponds to a picture)
        if shape.type == 3:
            # Resize the picture to a width of 4 inches
            shape.width = Cm(14)

    # Save the modified document
    doc.save('your_document_modified.docx')


if __name__ == '__main__':
    main()